#include <stdio.h>

#define PI 3.1415926

int main()
{
    int nCase;
    scanf("%d", &nCase);
    while (nCase-- > 0)
    {
        double r;
        scanf("%lf", &r);
        printf("%.4lf %.4lf %.4lf\n",
                2 * r, 2 * PI * r, PI * r * r);
    }
    return 0;
}
